﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminMaster.Master" Inherits="System.Web.Mvc.ViewPage<VietThuongLMS.ViewModels.NhanVienDetailViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<% if (Model != null && Model.nhanVienModel != null)
   { %>

        <legend>
        Thông Tin Nhân Viên
    </legend>

    <div class="control-group">
        <div class="display-label">Tên Đăng Nhập: 
        <%: Model.nhanVienModel.TaiKhoan.MaTaiKhoan%></div>
    </div>
        
    <div class="control-group">
        <div class="display-label">Tên Nhân Viên: 
        <%: Model.nhanVienModel.TaiKhoan.HoTen%></div>
    </div>

    <div class="control-group">
        <div class="display-label">Chi Nhánh: 
        <%: Model.nhanVienModel.ChiNhanhReference.Value.TenChiNhanh%></div>
    </div>

    <div class="control-group">
        <div class="display-label">Địa Chỉ: 
        <%: Model.nhanVienModel.TaiKhoan.DiaChi%></div>
    </div>

    <div class="control-group">
        <div class="display-label">Điện Thoại: 
        <%: Model.nhanVienModel.TaiKhoan.DienThoai%></div>
    </div>

    <div class="control-group">
        <div class="display-label">Ngày Sinh: 
        <%: Model.nhanVienModel.TaiKhoan.NgaySinh.ToString() != "" ? Model.nhanVienModel.TaiKhoan.NgaySinh.Value.ToString("dd/MM/yyyy") : ""%></div>
    </div>

    <div class="control-group">
        <div class="display-label">Nghề Nghiệp: 
        <%: Model.nhanVienModel.TaiKhoan.NgheNghiep%></div>
    </div>

    <div class="control-group">
        <div class="display-label">Nơi Công Tác: 
        <%: Model.nhanVienModel.TaiKhoan.NoiCongTac%></div>
    </div>

    <div class="btn btn-primary">
        <a href="<%=ResolveUrl("~/Admin/NhanVien/Index") %>">
        <button class="btn btn-primary">
        <i class="icon-reply"></i>
            Quay lại danh sách
        </button></a>
    </div>

<% }
   else
   { %>
   <div>
   </br>
    <h3>Hiện Không Có Dữ Liệu!</h3>
   </div>
<% } %>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>

